package com.isoftstone.demo.service.impl;

import com.isoftstone.demo.dao.DepotDao;
import com.isoftstone.demo.pojo.Depot;
import com.isoftstone.demo.service.DepotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * AuThor：StAY_
 * Create:2020/11/21
 */
@Service
public class DepotServiceImpl implements DepotService {

    @Autowired
    DepotDao depotDao;

    @Override
    public List<Depot> findAllDepot() {
        List<Depot> list = depotDao.findAll();
        for(Depot l:list){
            System.out.println(l.getDname());
        }
        return list;
    }
}
